package com.LeeCode;

/**
 * 重新排列数组
 */

public class Code1470 {
    public static void main(String[] args) {

    }

    public int[] shuffle(int[] nums, int n) {
        int[] res = new int[2 * n];
        for (int i = 0, j = n, k = 0; i < n; i++, j++) {
            res[k++] = nums[i];
            res[k++] = nums[j];
        }
        return res;
    }
}
